gtkmountoperation: Drop the new line character when splitting a message
authorOndrej Holy <oholy@redhat.com>
Fri, 7 Aug 2020 07:38:37 +0000 (09:38 +0200)
committerOndrej Holy <oholy@redhat.com>
Fri, 7 Aug 2020 08:37:19 +0000 (10:37 +0200)
commit517a34bdc8724535cb3d8cdc2e405257a6686e3c
treea1ea8394a16d9a99c2988f1547218acb0db30618
parent1b7004ffc73bdf37024e0a1d78bd73aecac1defc
gtkmountoperation: Drop the new line character when splitting a message

When asking for a password, the message string is split on primary
and secondary if it contains a newline character. However, the newline
character is currently part of both strings, which creates weird
spacing between the GtkLabels. I suppose this is bug, which was not
visible as in most cases (if not all) the message string hasn't
contained the new line characters so far. But we are going to change
that now, see GNOME/gvfs!82. Let's drop the new line character similarly
as it is done when asking for a question, or showing processes in order
to fix the weird spacing.
gtk/gtkmountoperation.c